package com.huoyun.invoice.action;

import java.util.List;

import com.huoyun.base.action.BaseAction;
import com.huoyun.cargo.bean.CargoInfo;
import com.huoyun.cargo.service.CargoService;
import com.huoyun.invoice.bean.Invoice;
import com.huoyun.invoice.service.InvoiceService;
import com.huoyun.userAdmin.bean.Address;
import com.huoyun.userAdmin.service.AddressService;

public class InvoiceAction extends BaseAction{
	private InvoiceService invoiceService;
	private AddressService addressService;
	private CargoService cargoService;
	
	private List<Address> addressList;
	private Invoice invoice;
	private CargoInfo cargo;
	
	public String preInvoice(){
		long userId=this.getLoginUser().getId();
		addressList= addressService.getAddressByUserId(userId);
		return SUCCESS;
	}
	

	

	
	public InvoiceService getInvoiceService() {
		return invoiceService;
	}
	public void setInvoiceService(InvoiceService invoiceService) {
		this.invoiceService = invoiceService;
	}
	public AddressService getAddressService() {
		return addressService;
	}
	public void setAddressService(AddressService addressService) {
		this.addressService = addressService;
	}
	public List<Address> getAddressList() {
		return addressList;
	}
	public void setAddressList(List<Address> addressList) {
		this.addressList = addressList;
	}
	public Invoice getInvoice() {
		return invoice;
	}
	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}
	public CargoService getCargoService() {
		return cargoService;
	}
	public void setCargoService(CargoService cargoService) {
		this.cargoService = cargoService;
	}

	public CargoInfo getCargo() {
		return cargo;
	}

	public void setCargo(CargoInfo cargo) {
		this.cargo = cargo;
	}

}
